package com.example.core.feign;

import com.example.core.utils.ServletUtils;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(value = "service-user")
public interface UserFeignClient {

    @GetMapping("/auth/hasPerm")
    public Boolean hasPerm(@RequestParam("permission") String permission,
                           @RequestHeader("Authorization") String token);

    @GetMapping("/auth/getUsername")
    public String getLoginUsername(@RequestHeader("Authorization")String token);


}



